<div class="container">
    <div class="row">
        <div class="col-md-10 col-md-offset-2">
            <?php foreach($article as $value){ ?>
            <form class="form form-horizontal formForNews" action="<?php echo site_url("Backend/check_edit_news")?>" method="post">
                <table class="table text-center">
                    <caption style="margin-bottom: 30px;">
                        <span class="glyphicon glyphicon-bullhorn"></span>&nbsp&nbsp<span style="font-weight: bold;font-size: 15px">查看<?php echo $category;?></span>
                    </caption>
                    <thead>
                    <tr style="font-weight:bold;"><td><span class="glyphicon glyphicon-text-size"></span></td><td><!--<span class="glyphicon glyphicon-tasks"></span>--></td><td><span class="glyphicon glyphicon-pencil"></span></td></tr>
                    </thead>
                    <tbody class="">
                    <tr>
                        <td width="20%" padding="10px">发布人</td>
                        <td colspan="2">
                            <div class="input-group" style="position: relative;z-index:0;">
                                <div class="input-group-addon">@</div>
                                <input type="text" class="form-control" id="publisher" name="publisher" value="<?php echo $value->publisher;?>">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>标题</td>
                        <td colspan="2">
                            <input type="text" class="form-control" name="title" value="<?php echo $value->title;?>">
                        </td>
                    </tr>
                    <tr>
                        <td>发布时间</td>
                        <td width="50%">
                            <div style="position: relative;z-index:0;"class="input-group date form_date" data-date="" data-date-format="" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
                                <input class="form-control publishTime" name="time" size="16" type="text" value="<?php echo $value->time;?>" readonly>
                                <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
                                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                            </div>
                            <input type="hidden" id="dtp_input2" value="" />
                        </td>
                        <td>
                            <table>
                                <tr><td width="30%"></td>
                                    <td>
                                        <div class="btn-group uptop" data-toggle="buttons">
                                            <?php if($value->top==1){ ?>
                                            <label class="btn btn-sm active" style="background: #C8E8FC;">
                                                <input type="radio" class="form-control" name="up" id="option1" autocomplete="off" value="1" checked>置顶
                                            </label>
                                            <label class="btn btn-sm" style="background: #C8E8FC;">
                                                <input type="radio"  class="form-control" name="up" id="option2" autocomplete="off" value="0">不置顶
                                            </label>
                                            <?php }else{ ?>
                                                <label class="btn btn-sm active" style="background: #C8E8FC;">
                                                    <input type="radio" class="form-control" name="up" id="option1" autocomplete="off" value="1">置顶
                                                </label>
                                                <label class="btn btn-sm" style="background: #C8E8FC;">
                                                    <input type="radio"  class="form-control" name="up" id="option2" autocomplete="off" value="0" checked>不置顶
                                                </label>
                                            <?php } ?>
                                        </div>
                                    </td><td width="10%"></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr heigth="500px"><td colspan="3">
                            <script style="height:400px;z-index:0;position:relative;" id="editor" type="text/plain" name="content"><?php echo $value->content;?></script>
                        </td></tr>
                    <tr style="border:none"><td colspan="3" style="border:none">
                            <div class="col-md-offset-11 col-sm-offset-11 col-xs-offset-11">
                                <input type="submit" class="btn btn-primary btn-sm" value="发布"/>
                            </div>
                        </td></tr>
                    </tbody>
                </table>

                <?php } ?>
            </form>
        </div>
    </div>
</div>